/*
 * @Author: chengsl
 * @Date: 2021-12-22 10:32:25
 * @LastEditors: chengsl
 * @LastEditTime: 2023-05-09 15:31:18
 * @Description: 数据脱敏配置 api 声明
 */
import request from '@/utils/request'
import { systemEnName, method } from '@/settings'
export const pageName = 'DemoPage'

// 查询接口前缀
const base = ''
export const pagePath = base + '/sys/org/page'

/**
 * 机构列表
 */
export const queryOrgList = {
  code: `${systemEnName}.${pageName}.queryOrgList`,
  type: '3',
  name: '机构列表',
  options: {
    method: 'get',
    url: `${pagePath}/list`
  },
  description: '机构列表',
  api: function(data) {
    return request({ ...this.options, data })
  }
}

/**
 * 新增一条机构记录
 */
export const addOrg = {
  code: `${systemEnName}.${pageName}.add`,
  type: '3',
  name: '新增一条机构记录',
  options: {
    method,
    url: `${pagePath}/list/add`
  },
  description: '新增一条机构记录',
  api: function(data) {
    return request({ ...this.options, data })
  }
}

